package com.bbs.action;

import java.io.IOException;
import java.util.List;

import com.bbs.dao.InfoCenterDao;
import com.bbs.dao.impl.InfoCenterDaoImpl;
import com.bbs.model.Reply;
import com.bbs.model.Topic;
import com.bbs.model.User;

public class InfoCenterAction extends BaseAction{
	/**
	 * 
	 */
	private static final long serialVersionUID = 6066356992146752810L;
	
	private InfoCenterDao infoCenterDao;
	private User user;
	private List<Reply> replyList;
	private List<Topic> topicList;
	//我评论的列表
	public String replyFromMe() throws IOException {
		infoCenterDao=new InfoCenterDaoImpl(); 
		replyList=infoCenterDao.replyFromMe(user);
		return "replyFromMe";

	}
	//评论我的 列表
	public String replyToMe() throws IOException {
		infoCenterDao=new InfoCenterDaoImpl(); 
		replyList=infoCenterDao.replyToMe(user);
		return "replyToMe";
		
	}
	
	//我发表的帖子列表 
	public String topicOfMine() throws IOException {
		infoCenterDao=new InfoCenterDaoImpl(); 
		topicList=infoCenterDao.topicOfMine(user);
		return "topicOfMine";
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public List<Reply> getReplyList() {
		return replyList;
	}
	public void setReplyList(List<Reply> replyList) {
		this.replyList = replyList;
	}
	public List<Topic> getTopicList() {
		return topicList;
	}
	public void setTopicList(List<Topic> topicList) {
		this.topicList = topicList;
	}
	
	//发帖
	
	

}
